package com.example.demo.Entity.Opus_Comment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Wu
 * @since 2025-04-05 04:43:26
 */
@Data
@AllArgsConstructor
@RequiredArgsConstructor
@TableName("opus_comment")
public class OpusComment implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    private String words;

    private Integer commentUserId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")  // 处理表单时间格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer opusId;
}
